package com.vhly.ddxdecompiler.dexreader.file.dalv.code.reader;


import com.vhly.ddxdecompiler.dexreader.file.dalv.code.DalvInsn;
import com.vhly.ddxdecompiler.dexreader.io.DexInputStream;

import java.io.IOException;


public final class Form31t extends InsnReader {

    public static final InsnReader THE_ONE = new Form31t();

    private Form31t() {
    }

    public void prepair(DalvInsn dalvInsn, int reg) {
        dalvInsn.addRegister(reg);
    }

    public int read(DalvInsn insn, DexInputStream din) throws IOException {
        short c1 = din.readShort(); // target low 16
        short c2 = din.readShort(); // target hight 16
        insn.addRegister(c1);
        insn.addRegister(c2);
        return 2;
    }
}